<?php TPL::output('global/header.tpl.htm'); ?>

		<?php TPL::output('account/setting/setting_header.tpl.htm'); ?>
		<!--基本资料_s--> 
		<div class="v_setting i_elmsInputs">
			<h4 class="h4">基本信息</h4>
				<div class="v_setMain v_ess">
					<!--头像设置_s-->
					<div class="v_headSet">
						<div class="v_user-headimgs"><img id="avatar_src" alt="" class="i_radiu5" src="<?php echo get_avatar_url($this->user_id, 'max'); ?>" /></div>
						<h5 class="i_cl_01">头像设置</h5>
						<p>支持 jpg、gif、png 等格式的图片</p>
						<a class="i_green_but" id="avatar_uploader" href="javascript:;">上传头像</a> <span id="avatar_uploading_status" style="display:none"><img src="<?php echo G_STATIC_URL; ?>/common/load.gif" align="absmiddle"> 文件上传中...</span>
					</div>
					<!--头像设置_e-->
					<form id="setting_form" method="post" action="account/ajax/profile_setting/">
					<ul class="v_essential ">
						<li><label>账号：</label><?php echo $this->user_info['email']; ?><?php if ($this->user_info['valid_email'] == 0) { ?> &nbsp; (<a href="javascript:;" onclick="ajax_request(G_BASE_URL + '/account/ajax/send_valid_mail/');">您的邮件地址还未验证,请点击进行验证</a>)<?php } ?></li>
						<li><label>真实姓名：</label><?php if ($this->user_info['user_name'] AND $this->user_info['user_name'] != $this->user_info['email']) { ?><?php echo $this->user_info['user_name']; ?><?php } else { ?><input type="text" class="v_intr"  name="user_name" id="user_name" value="<?php echo $this->user_info['user_name']; ?>" /><?php } ?></li>
						<li><label>性别：</label><input type="radio" name="sex" id="sex" value="1"<?php if ($this->user_info['sex'] == 1 || empty($this->user_info['sex'])) { ?> checked="checked"<?php } ?>/> 男 &nbsp; <input type="radio" name="sex" id="sex" value="2" <?php if ($this->user_info['sex'] == 2) { ?> checked="checked"<?php } ?>/> 女 &nbsp; <input type="radio" name="sex" id="sex" value="3" <?php if ($this->user_info['sex'] == 3) { ?> checked="checked"<?php } ?>/> 保密</li></li>
						<li ><label>生日：</label><select name="birthday_y"><option value=""></option><?php echo H::display_options($this->birthday_y, $this->birthday_y_s); ?></select> 年 <select name="birthday_m"><option value=""></option><?php echo H::display_options($this->birthday_m, $this->birthday_m_s); ?></select>月 <select name="birthday_d"><option value=""></option><?php echo H::display_options($this->birthday_d, $this->birthday_d_s); ?></select> 日</li>
						<li><label>现居：</label><select name="province" class="select_area"></select> <select name="city" class="select_area"></select></li>
						<li><label>职业：</label><select name="job_id" class="select_job"><option value="">--</option><?php echo H::display_options($this->job_list, $this->user_info['job_id']); ?></select></li>
						<li><label>介绍：</label><input name="signature" maxlength="128" onKeyUp="if($.trim($(this).val()).length >=128){$.alert('一句话介绍，仅限128个字符之内！');}" type="text" id="signature" class="v_intr" value="<?php echo $this->user_info['signature']; ?>"<?php if ($this->user_info['verified']) { ?> disabled="disabled"<?php } ?> /></li>
						<li><label>个性网址：</label><script type="text/javascript">document.write(G_BASE_URL);</script>/people/ <input name="url_token" maxlength="32" style="width:90px" onKeyUp="if($.trim($(this).val()).length >=32){$.alert('个性网址，仅限32个字符之内！');}" type="text" id="url_token"  class="v_intr" value="<?php echo $this->user_info['url_token']; ?>"<?php if ($this->user_info['url_token_update'] AND $this->user_info['url_token_update'] > (time() - 3600 * 24 * 30)) { ?> disabled="disabled"<?php } ?>/><br /><p>(可输入 4~20 位的英文或数字 , 30 天内只能修改一次)</p></li>
						<li>
						<label>时区：</label>
						<select name="default_timezone">
							<option value=''>使用系统默认时区</option>
							<option value='Etc/GMT+12'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+12') { ?> selected="selected"<?php } ?>>(GMT - 12:00 小时) 安尼威托克岛，卡瓦加兰</option>
							<option value='Etc/GMT+11'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+11') { ?> selected="selected"<?php } ?>>(GMT - 11:00 小时) 中途岛，萨摩亚</option>
							<option value='Etc/GMT+10'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+10') { ?> selected="selected"<?php } ?>>(GMT - 10:00 小时) 夏威夷</option>
							<option value='Etc/GMT+9'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+9') { ?> selected="selected"<?php } ?>>(GMT - 9:00 小时) 阿拉斯加</option>
							<option value='Etc/GMT+8'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+8') { ?> selected="selected"<?php } ?>>(GMT - 8:00 小时) 太平洋时间</option>
							<option value='Etc/GMT+7'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+7') { ?> selected="selected"<?php } ?>>(GMT - 7:00 小时) 美国山区时间</option>
							<option value='Etc/GMT+6'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+6') { ?> selected="selected"<?php } ?>>(GMT - 6:00 小时) 美国中部时间，墨西哥市</option>
							<option value='Etc/GMT+5'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+5') { ?> selected="selected"<?php } ?>>(GMT - 5:00 小时) 美国东部时间，波哥大，利马</option>
							<option value='Etc/GMT+4'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+4') { ?> selected="selected"<?php } ?>>(GMT - 4:00 小时) 大西洋时间（加拿大），加拉加斯，拉巴斯</option>
							<option value='Canada/Newfoundland'<?php if ($this->user_info['default_timezone'] == 'Canada/Newfoundland') { ?> selected="selected"<?php } ?>>(GMT - 3:30 小时) 纽芬兰</option>
							<option value='Etc/GMT+3'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+3') { ?> selected="selected"<?php } ?>>(GMT - 3:00 小时) 巴西，布宜诺斯艾利斯，福克兰群岛</option>
							<option value='Etc/GMT+2'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+2') { ?> selected="selected"<?php } ?>>(GMT - 2:00 小时) 大西洋中部，亚森欣，圣赫勒拿岛</option>
							<option value='Etc/GMT+1'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT+1') { ?> selected="selected"<?php } ?>>(GMT - 1:00 小时) 亚速群岛，佛得角群岛</option>
							<option value='Etc/GMT'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT') { ?> selected="selected"<?php } ?>>(GMT) 卡萨布兰卡，都柏林，伦敦，里斯本，蒙罗维亚</option>
							<option value='Etc/GMT-1'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-1') { ?> selected="selected"<?php } ?>>(GMT + 1:00 小时) 布鲁塞尔，哥本哈根，马德里，巴黎</option>
							<option value='Etc/GMT-2'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-2') { ?> selected="selected"<?php } ?>>(GMT + 2:00 小时) 加里宁格勒，南非</option>
							<option value='Etc/GMT-3'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-3') { ?> selected="selected"<?php } ?>>(GMT + 3:00 小时) 巴格达，利雅德，莫斯科，奈洛比</option>
							<option value='Iran'<?php if ($this->user_info['default_timezone'] == 'Iran') { ?> selected="selected"<?php } ?>>(GMT + 3:30 小时) 德黑兰</option>
							<option value='Etc/GMT-4'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-4') { ?> selected="selected"<?php } ?>>(GMT + 4:00 小时) 阿布达比，巴库，马斯喀特，第比利斯</option>
							<option value='Asia/Kabul'<?php if ($this->user_info['default_timezone'] == 'Asia/Kabul') { ?> selected="selected"<?php } ?>>(GMT + 4:30 小时) 喀布尔</option>
							<option value='Etc/GMT-5'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-5') { ?> selected="selected"<?php } ?>>(GMT + 5:00 小时) 凯萨琳堡，克拉嗤，塔什干</option>
							<option value='Asia/Kolkata'<?php if ($this->user_info['default_timezone'] == 'Asia/Kolkata') { ?> selected="selected"<?php } ?>>(GMT + 5:30 小时) 孟买，加尔各答，马德拉斯，新德里</option>
							<option value='Etc/GMT-6'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-6') { ?> selected="selected"<?php } ?>>(GMT + 6:00 小时) 阿拉木图，科隆巴，达卡</option>
							<option value='Etc/GMT-7'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-7') { ?> selected="selected"<?php } ?>>(GMT + 7:00 小时) 曼谷，河内，雅加达</option>
							<option value='Etc/GMT-8'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-8') { ?> selected="selected"<?php } ?>>(GMT + 8:00 小时) 北京，香港，澳洲伯斯，新加坡，台北</option>
							<option value='Etc/GMT-9'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-9') { ?> selected="selected"<?php } ?>>(GMT + 9:00 小时) 大阪，札幌，首尔，东京，亚库次克</option>
							<option value='Etc/GMT-10'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-10') { ?> selected="selected"<?php } ?>>(GMT + 10:00 小时) 墨尔本，巴布亚新几内亚，雪梨</option>
							<option value='Etc/GMT-11'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-11') { ?> selected="selected"<?php } ?>>(GMT + 11:00 小时) 马加丹，新喀里多尼亚，所罗门群岛</option>
							<option value='Etc/GMT-12'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-12') { ?> selected="selected"<?php } ?>>(GMT + 12:00 小时) 新西兰，斐济，马绍尔群岛</option>
							<option value='Etc/GMT-13'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-13') { ?> selected="selected"<?php } ?>>(GMT + 13:00 小时) 堪察加半岛，阿那底河</option>
							<option value='Etc/GMT-14'<?php if ($this->user_info['default_timezone'] == 'Etc/GMT-14') { ?> selected="selected"<?php } ?>>(GMT + 14:00 小时) 圣诞岛</option>
						</select>
						</li>
					</ul>
				</div>
				
				<h4 class="h4">联系方式</h4>
				<div class="v_setMain">
					<ul class="v_myct i_clear">
						<li class="sp"><label>QQ：</label><input type="text" name="qq" value="<?php echo $this->user_info['qq']; ?>" /></li>
						<li class="sp"><label>手机：</label><input type="text" name="mobile" value="<?php echo $this->user_info['mobile']; ?>" /></li>
						<li class="sp"><label style="width:80px;">常用邮箱：</label><input type="text" name="common_email" value="<?php echo $this->user_info['common_email']; ?>" /></li>
						<li class="sp"><label>网站：</label><input type="text" name="homepage" value="<?php echo $this->user_info['homepage']; ?>" /></li>
					</ul>
				</div>
				</form>
				<h4 class="h4">教育经历</h4>
				<!--此表单用于重置-->
				
				<div class="v_setMain" id="v_education">
					<p class="v_group_title i_cl_01">
						<span class="s1">学校名称</span>
						<span class="s1">所在院系</span>
						<span class="s2">入学年份</span>
						<span class="s2">操作</span>
					</p>
					<form id="v_education_formReset" onSubmit="return false;">
					<ul class="v_group_bd i_clear i_bottomRadius5">
						<li class="s1"><input type="text" name="school_name" value="如:xx大学..." onFocus="$.focus(this,'如:xx大学...');"/></li>
						<li class="s1"><input type="text" name="departments" value="如:工程学院计算机系..." onFocus="$.focus(this,'如:工程学院计算机系...');"/></li>
						<li class="s2" id="v_groupSelects">
							<select class="v_group_selects_years" name="education_years">
								<option value=""></option>
								<?php echo H::display_options($this->birthday_y); ?>
							</select> 年
						</li>
						<li class="s2"><a href="javascript:;" onClick="$.set.addElem({flg:this,eventType:event,changer:false});">添加</a></li>
					</ul>                                             
                    </form>
				</div>
			
			
			<h4 class="h4">工作经历</h4>
			<!--此表单用于重置-->
			
			
			<div class="v_setMain"  id="v_jobs">
				<p class="v_group_title i_cl_01">
					<span class="s1">公司名称</span>
					<span class="s1">所在职位</span>
					<span class="s3">工作时间</span>
				</p>
				<form id="v_job_formReset" onSubmit="return false;">
				<ul class="v_group_bd i_clear" id="user_Jobs_Ul">
					<li class="s1"><input type="text" name="company_name" id="Job_company_name" value="xx上市公司..." onFocus="$.focus(this,'xx上市公司...');"/></li>
					<li class="s1">
						<select class="v_group_selects_jobs" name="job_id" id="work_jobs_list">
							<option value=""></option>
							<?php echo H::display_options($this->job_list); ?>
						</select>
					</li>
						
					<li class="s3" id="work_timeline">
						<p> 
							<select class="v_group_selects_years" id="work_start_year" name="start_year">
								<option value=""></option>
								<?php echo H::display_options($this->birthday_y); ?>
							</select> 年 
								
							 &nbsp; 至 <select class="v_group_selects_years" id="work_end_year" name="end_year">
								<option value=""></option>
								<option value="-1">至今</option>
								<?php echo H::display_options($this->birthday_y); ?>
							</select> 年 
						</p>
						</li>
					</ul>
					</form>
					<p class="v_group_operate" id="user_Manipulates">操作：<a href="javascript:;" onclick="$.set.addjobs({flg:this,eventType:event,changer:false});">添加</a></p>
				</div>
				
				
				
				<p class="v_submit i_tr"><a title="保存" href="javascript:;" onclick="ajax_post($('#setting_form'));" class="i_replay_but2">保存</a></p>
			</div>
		<?php TPL::output('account/setting/setting_footer.tpl.htm'); ?>



<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/js/app/setting.js"></script>

<script type="text/javascript">
$(document).ready(function () {
	$('.select_area').LocationSelect({
        labels: ["请选择省份或直辖市", "请选择城市"],
        elements: document.getElementsByTagName("select"),
        detector: function () {
            this.select(["<?php echo $this->user_info['province']; ?>", "<?php echo $this->user_info['city']; ?>"]);
        },
		dataUrl: G_BASE_URL + '/account/ajax/areas_json_data/'
    });
	
    init_avatar_uploader($('#avatar_uploader'), $('#avatar_uploading_status'), $("#avatar_src"));
});
</script>

<script type="text/javascript">
<?php if ($this->education_experience_list) { ?>
/*
*   $.set.addElem:function(settings);
*   注：调用时需先加载common.js,否则$.alert无效。
*/

//教育经历
$.set.addElem({
	  changer: true,   //开关设置，设置为true时,则展示用户教育经历。(如果用户未填写任何资料则为：false)
	    array: <?php echo json_encode($this->education_experience_list); ?>
});
<?php } ?>

<?php if ($this->work_experience_list) { ?>
//工作经历
$.set.addjobs({
	 changer: true,
	   array: <?php echo json_encode($this->work_experience_list); ?>
});
<?php } ?>
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>